package boerse.CommandProcessor;

public class CommandDescriptor {
	
	protected Object[] params;
	protected CommandTypeInfo commandType;
	
	
	public CommandDescriptor() {
		super();

	}

	public void setObject (Object[] input) {
		params = new Object[input.length-1];
		commandType = (CommandTypeInfo) input[0];
	
		for (int i = 0; i < params.length; i++) {
			params[i] = input[i+1];
		}
	}
	
	public CommandTypeInfo getCommandType() {
		return commandType;
		
	}
	
	public Object[] getParams() {
		return params;
		
	}

}
